<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%!private int amount = 3;

	public void show(double data) {
		System.out.println("data=" + data);
	}

	static {
		System.out.println("static");
	}%>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<%
double price = 2.5;
%>
</head>
<%
double count = 0;
%>
<body>
	Hello JSP World!!!
	<%--哈哈 --%>

	<%
	System.out.println("java代码段");
	%>

	<%
	count = amount * price;
	%>
	<%
	System.out.println(count);
	show(count);
	%>

	count=<%=count%>
</body>
</html>